#ifndef CONNECTIONMANAGER_H
#define CONNECTIONMANAGER_H

#include "connection.h"

#include <QList>


class ConnectionManager : public QThread
{

public:
    ConnectionManager();

    bool sync(QString path1, QString path2);
    void unsync(int id);

    Connection* at(int id);

    QString hasupdates();
    bool update();

private:
    QList<Connection*> _list;

protected:
    void run();

};

#endif // CONNECTIONMANAGER_H
